package com.cl.bean;

public class Emp {
	
	private int e_id;
	private Dept dept;
	private String e_loginname;
	private String e_psw;
	private String e_img;
	private String e_sex;
	private int e_flag;
	private int e_admin;
	private String e_remark;
	private String e_truename;
	private int e_is = 1;
	public int getE_id() {
		return e_id;
	}
	public void setE_id(int e_id) {
		this.e_id = e_id;
	}
	public Dept getDept() {
		return dept;
	}
	public void setDept(Dept dept) {
		this.dept = dept;
	}
	public String getE_loginname() {
		return e_loginname;
	}
	public void setE_loginname(String e_loginname) {
		this.e_loginname = e_loginname;
	}
	public String getE_psw() {
		return e_psw;
	}
	public void setE_psw(String e_psw) {
		this.e_psw = e_psw;
	}
	public String getE_img() {
		return e_img;
	}
	public void setE_img(String e_img) {
		this.e_img = e_img;
	}
	public String getE_sex() {
		return e_sex;
	}
	public void setE_sex(String e_sex) {
		this.e_sex = e_sex;
	}
	public int getE_flag() {
		return e_flag;
	}
	public void setE_flag(int e_flag) {
		this.e_flag = e_flag;
	}
	public int getE_admin() {
		return e_admin;
	}
	public void setE_admin(int e_admin) {
		this.e_admin = e_admin;
	}
	public String getE_remark() {
		return e_remark;
	}
	public void setE_remark(String e_remark) {
		this.e_remark = e_remark;
	}
	public String getE_truename() {
		return e_truename;
	}
	public void setE_truename(String e_truename) {
		this.e_truename = e_truename;
	}
	public int getE_is() {
		return e_is;
	}
	public void setE_is(int e_is) {
		this.e_is = e_is;
	}
	public String getPName() {
		if(this.e_is == 1){
			return dept.getP_name();
		}else{
			return "待议";
		}
	}
	
	@Override
	public String toString() {
		return "Emp [e_id=" + e_id + ", dept=" + dept + ", e_loginname=" + e_loginname + ", e_psw=" + e_psw + ", e_img="
				+ e_img + ", e_sex=" + e_sex + ", e_flag=" + e_flag + ", e_admin=" + e_admin + ", e_remark=" + e_remark
				+ ", e_truename=" + e_truename + ", e_is=" + e_is + "]";
	}
}
